<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jd.ty.pojo" >
	<class name="Customer" table="BUS_CUSTOMER" schema="TYMS">
	    <id name="customerId" type="java.lang.Long">
            <column name="CUSTOMER_ID" precision="10" scale="0"  />
            <generator class="identity" />
	    </id>
		<property name="customerName" type="java.lang.String">
		    <column name="CUSTOMER_NAME" length="20" not-null="true"  />
		</property>
		<property name="position" type="java.lang.String">
		    <column name="POSITION" length="50"/>
		</property>
		<property name="sex" type="java.lang.String">
		    <column name="SEX" length="10" />
		</property>
       <property name="phoneNumber" type="java.lang.String">
            <column name="PHONE_NUMBER" length="50" />
        </property>
		<many-to-one name="custCompany" class="com.jd.ty.pojo.CustomerCompany"    column="CUSTOMER_COMPANY_ID" />

	</class>
</hibernate-mapping>
